package com.adu.demo.service.Impl;

import java.util.List;
import com.adu.demo.domain.SysUserRole;
import com.adu.demo.mapper.SysUserRoleMapper;
import com.adu.demo.service.ISysUserRoleService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
                                            
@Service
public class SysUserRoleService implements ISysUserRoleService{
    @Autowired
    private SysUserRoleMapper sysuserroleMapper;

    @Override
    public List<SysUserRole> getList(SysUserRole sysuserrole){
        return sysuserroleMapper.getList(sysuserrole);
    }
    @Override
    public SysUserRole getById(Long id){
        return sysuserroleMapper.getById(id);
    }
    @Override
    public int save(SysUserRole sysuserrole){
        return sysuserroleMapper.save(sysuserrole);
    }
    @Override
    public int deleteById(Long id){
        return sysuserroleMapper.deleteById(id);
    }
    @Override
    public int deleteByIds(Long[] ids){
        return  sysuserroleMapper.deleteByIds(ids);
    }
    @Override
    public int update(SysUserRole sysuserrole){
        return sysuserroleMapper.update(sysuserrole);
    }
}